-- GENERATED SPELL FOR [Illidari Succubus] --


function spell0_22860(pUnit, Event) --@Lash of Pain,n/a--
pUnit:FullCastSpellOnTarget(32202,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22860', 635, 1)
end

function spell1_22860(pUnit, Event) --@Seduction,n/a--
pUnit:FullCastSpellOnTarget(31865,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22860', 6500, 1)
end

function Sorts_22860(pUnit, Event)
local choix_sorts_22860 = math.random(0, 1)
if choix_sorts_22860 == 0 then
pUnit:RegisterEvent('spell0_22860', 1, 1)
end
if choix_sorts_22860 == 1 then
pUnit:RegisterEvent('spell1_22860', 1, 1)
end
end

function mob22860_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22860', math.random(1500, 3000), 1)
end

function mob22860_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22860_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22860_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22860, 1, 'mob22860_Action')
RegisterUnitEvent(22860, 2, 'mob22860_Leave')
RegisterUnitEvent(22860, 3, 'mob22860_Kill')
RegisterUnitEvent(22860, 4, 'mob22860_Die')
